package com.zy.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zy.common.base.BaseEntity;
import java.util.Date;

/**
 * 定时任务调度表 sys_job
 * 
 * @author zy
 * @date 2018-12-19
 */
public class SysJob extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 任务ID */
	private Integer jobId;
	/** 任务名称 */
	private String jobName;
	/** 任务组名 */
	private String jobGroup;
	/** 任务方法 */
	private String methodName;
	/** 方法参数 */
	private String methodParams;
	/** cron执行表达式 */
	private String cronExpression;
	/** 计划执行错误策略（1立即执行 2执行一次 3放弃执行） */
	private String misfirePolicy;
	/** 状态（0正常 1暂停） */
	private String status;
	/** 创建者 */
	private String createBy;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 更新时间 */
	private Date updateTime;
	/** 备注信息 */
	private String remark;

	public void setJobId(Integer jobId) 
	{
		this.jobId = jobId;
	}

	public Integer getJobId() 
	{
		return jobId;
	}
	public void setJobName(String jobName) 
	{
		this.jobName = jobName;
	}

	public String getJobName() 
	{
		return jobName;
	}
	public void setJobGroup(String jobGroup) 
	{
		this.jobGroup = jobGroup;
	}

	public String getJobGroup() 
	{
		return jobGroup;
	}
	public void setMethodName(String methodName) 
	{
		this.methodName = methodName;
	}

	public String getMethodName() 
	{
		return methodName;
	}
	public void setMethodParams(String methodParams) 
	{
		this.methodParams = methodParams;
	}

	public String getMethodParams() 
	{
		return methodParams;
	}
	public void setCronExpression(String cronExpression) 
	{
		this.cronExpression = cronExpression;
	}

	public String getCronExpression() 
	{
		return cronExpression;
	}
	public void setMisfirePolicy(String misfirePolicy) 
	{
		this.misfirePolicy = misfirePolicy;
	}

	public String getMisfirePolicy() 
	{
		return misfirePolicy;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("jobId", getJobId())
            .append("jobName", getJobName())
            .append("jobGroup", getJobGroup())
            .append("methodName", getMethodName())
            .append("methodParams", getMethodParams())
            .append("cronExpression", getCronExpression())
            .append("misfirePolicy", getMisfirePolicy())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
